oxenstored: enable logging via syslog, if specified in the config file.
authorDavid Scott <dave.scott@eu.citrix.com>
Tue, 19 Mar 2013 16:53:01 +0000 (16:53 +0000)
committerDavid Scott <dave.scott@eu.citrix.com>
Tue, 19 Mar 2013 21:16:04 +0000 (21:16 +0000)
commit24bd2dbb85d12f1d435180c328950035205b0af5
tree0e0e83972eee3f67600408e1bfc0b5cb1c2deed9
parent2f778405fe074ae0801d6328da6ba869e4786d77
oxenstored: enable logging via syslog, if specified in the config file.

To log to files the config file should contain:
   xenstored-log-file = /var/log/xenstored.log
   access-log-file = /var/log/xenstored-access.log

(These two files are still the built-in defaults. The log format is
unchanged.)

To log to syslog the config file should contain:
   xenstored-log-file = syslog:<facility>
   access-log-file = syslog:<facility>

where <facility> is the syslog facility to use (e.g. 'daemon' 'local2')

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
tools/ocaml/xenstored/logging.ml
tools/ocaml/xenstored/xenstored.ml